<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html>
<html>
<head lang="en">
    <style>
	body{background: transparent;}
    </style>
    <meta charset="UTF-8">
 <base href="/res/en/" />
    <link type="text/css" rel="stylesheet" href="css/main_inner.css" />
</head>
<body>

<div class="mainArea_inner">
<!--
    <div class="header">
        <font style="size:19px;color:red">中国</font><p class="pageTitle fontDinproMedium">发布代码</p>
       </div>
    <div class="nav">
        <div class="curBg"></div>
        
    </div>
   
-->
<style>
  .mainArea_inner>.mainBody .selectorDiv{
        margin-top: 0;
    }
    .mainArea_inner>.mainBody .selectorDiv>.selectorName{
        line-height: 28px;
        float: left;
        padding-right: 6px;
        vertical-align: middle;
        font-size: 12px;
        color: #2e2e2e;
    }
    .mainArea_inner>.mainBody .selectorDiv>.selectorName>span{
        color: red;
    }
    .mainArea_inner>.mainBody .selectorDiv>.listGroup{
        float: left;
        width: 164px;
        height: 28px;
    }
    .mainArea_inner>.mainBody .selectorDiv>.listGroup>.btnLeft{
        width: 110px;
        font-size: 12px;
        color: #ffffff;
        text-align: left;
        padding-left: 20px;
        padding-right: 0px;
        margin-left: 0;
        border-right: 0;
        padding: 4px 5px 4px 15px;
    }
    .mainArea_inner>.mainBody .selectorDiv>.listGroup>.dropDownList{
        width: 163px;
    }
</style>

<div class="mainBody" style="overflow:auto;" >

       <?php 	if($list['env']=="online"){
			echo form_open_multipart('deploy_online/start_rollback');
		 }else{
			echo form_open_multipart('deploy_test/start_rollback');
		}
	?>
	<div class="btnArea floatFix">
		<div class="search noMarginTop fontDinpro">
		<input type="text" readOnly="true"  name='app' value=<?php echo $list['app'];?> />
		<input type="text" readOnly="true"  name='env' value=<?php echo $list['env'];?> />
		<br>
	<font style="size:5px">提交历史:</font><br>
	<?php $commit_info = $this->commit_log_model->get_commit_log($list['app'],$list['env']);
		foreach($commit_info as $k => $v){
			echo "<font size=1px >".$v['last_commit_time']."</font>:  ".$v['last_commit']."<br>";
		}
	?>
	<input type="text" name='last_commit' value="" />
	<button type="submit">提交</button>
	<?php echo form_close();?>
	   
</body>
</html>
